package com.base.system.jpa.repository;

import com.base.system.jpa.entity.JpaUserToken;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.Optional;

public interface UserTokenRepository extends JpaRepository<JpaUserToken,Long>, JpaSpecificationExecutor<JpaUserToken> {
    Optional<JpaUserToken> findFirstByUserId(Long userId);
}
